These things were showing up as crashes during DND,
when the root is a GtkDragIcon. I'm sure there's more.
}
root = gtk_widget_get_root (widget);
- if (!root)
+ if (!GTK_IS_WINDOW (root))
{
*out_n_devices = 0;
return NULL;
return;
root = _gtk_widget_get_root (widget);
- if (root)
+ if (GTK_IS_WINDOW (root))
gtk_window_maybe_update_cursor (GTK_WINDOW (root), widget, NULL);
g_object_notify_by_pspec (G_OBJECT (widget), widget_props[PROP_CURSOR]);